import 'package:flutter/material.dart';

class MyHomePage extends StatefulWidget {

  final String title;

  MyHomePage({Key key, this.title}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {

    return Scaffold(
      appBar: AppBar(

        title: Text(widget.title),
      ),
      body: Center(
        child: ListView(
          children: <Widget>[
            FlatButton(
              onPressed: (){
                Navigator.pushNamed(context, "day_01");
              },
              child: Text("第一节"),
            ),
            FlatButton(
              onPressed: (){
                Navigator.pushNamed(context, "day_02");
              },
              child: Text("第二节"),
            ),
            FlatButton(
              onPressed: (){
                Navigator.pushNamed(context, "day_03");
              },
              child: Text("第三节"),
            ),
            FlatButton(
              onPressed: (){
                Navigator.pushNamed(context, "day_04");
              },
              child: Text("第四节"),
            ),
          ],
        )
      ),
    );
  }
}